statinozzo='Yam-Expansion v1.4 by Dx0. Contact me at:d.defelice@ba.nettuno.it'
address YAMEXP
select
when didi='RIMOZZO' then call removazzo
when didi='MAKOZZO' then call makkolo
when didi='FOKOZZO' then call fokkolo
when didi='WRL' then call ritodrl
when didi='WCH' then call riwekch
when didi='WMD' then call riwekmd
when didi='ADALL' then call selezionazzi
when didi='FF' then call faiftp
when didi='XIXI' then address YAMEXP window ID cicciotto CLOSE
when didi='' then do
if find(portazze,'YAM')=0 then
do
window ID DOZE COMMAND PORT YAMExp TITLE "Error Message"
group
label CENTER "Please start Yam first !!!"
button ID ERR COMMAND '"quit"' PORT YAMEXP LABEL "Ok I'll do it"
endgroup
endwindow
exit
end
call conamiga
call faiwindoze
end
when didi='HTMLL' then call htmlla
when didi='AGGI' then call aggiftpmail
when didi='RASSALO' then do
tipozzolo=3
call ransignalo
end
when didi='RASGALO' then do
tipozzolo=1
call ransignalo
end
when didi='RASTALO' then do
tipozzolo=2
call ransignalo
end
when didi='SALVAGALO' then do
ftpmailsites=word(dido,1)
aminethtmlsites=word(dido,2)
aminetftpsites=word(dido,3)
call salvaamiga
window ID WINDOZE CLOSE
call faiwindoze
end
when didi='FICCALA' then do
ftpmailsites=word(dido,1)
aminethtmlsites=word(dido,2)
aminetftpsites=word(dido,3)
call amigala
window ID WINDOZE CLOSE
call faiwindoze
end
otherwise nop
end
exit
/* ---------------------< Funzioni >-------------------------------------------------------------------------------------------------------------------- */
faiwindoze:
window ID WINDOZE COMMAND "quit" PORT YAMExp TITLE "YAM-Expansion v1.0 (by dx0)"
group ID MMM REGISTER PORT YAMExp LABELS "Main,Configuration"
group
if feffone=1 then do
group ID AMI1 FRAME LABELS "Aminet"
button ID AMINETTER COMMAND '"YAMExp.rexx HTMLL"' HELP '"Create an html file from an Aminet recent email"' LABEL "Make Recent-HTML"
button ID FTPIT COMMAND '"YAMExp.rexx FF"' HELP '"Create a ftpmail or an AmFtp batch file from an Aminet recent email"' LABEL "Ftp Section"
endgroup
end
if sfeffeo=1 then do
group ID SISSI FRAME LABELS "Sign"
button ID RASI COMMAND '"YAMExp.rexx RASSALO"' HELP '"Sign the selected email with a random sign"' LABEL "Random Sign"
button ID RANSSIGN COMMAND '"YAMExp.rexx RASGALO"' HELP '"Sign the selected email with a serious sign"' LABEL "Serious Sign"
button ID RANNSIGN COMMAND '"YAMExp.rexx RASTALO"' HELP '"Sign the selected email with an informal sign"' LABEL "Informal Sign"
endgroup
end
if pappone=1 then do
button ID ABO COMMAND '"text ID STATUS LABEL Yam-Expansion v1.0 by Dx0"' PORT YAMEXP ICON "yamexpansion:data/icon"
if angela=1 then call sballa('yamexpansion:html/Weekly.'||daten||'.html')
if angela=2 then call sballa('yamexpansion:html/MostDL.'||daten||'.html')
if angela=3 then call sballa('yamexpansion:html/Charts.'||daten||'.html')
end
end
end
end
statino=' Operation done, ready to serve you...'
address YAMEXP text ID STATUS LABEL statino
return
sballa:
parse arg chiama
/* Manda il file al browser */
if pos('VOYAGER',portazze)>0 then address 'VOYAGER' 'OpenURL file:///'|| chiama
if pos('IBROWSE',portazze)>0 then address 'IBROWSE' 'GotoURL file:///' || chiama
if pos('AWEB',portazze)>0 then do
address value substr(portazze,pos('AWEB.',portazze),6)
'Open file://localhost/' || chiama
end
if pos('MINDWALKER',portazze)>0 then address 'MINDWALKER' 'OpenURL file:///'|| chiama
return
creafile: /* Creazione del file */
parse arg prex
getmailinfo sub
nome=right(result,11)
nome=strip(nome)
daten=nome
nome='yamexpansion:html/' || prex || nome || '.html'
call open(filo,nome,'W')
return
chiudihtml: /* Chiusura dell'html */
parse arg filoccioccio
writeln(filo,'<center>')
writeln(filo,'<hr>')
writeln(filo,'<h4>Send comments and whatever you want to: <B>Diego dx0 de Felice <a href="mailto:d.defelice@ba.nettuno.it">d.defelice@ba.nettuno.it</B></a>')
writeln(filo,'</H4>')
writeln(filo,'<h5>Created with YAM-Expansion v1.0 by <a href="mailto:d.defelice@ba.nettuno.it">Diego dx0 de Felice</a></h5>')
writeln(filo,'</center>')
writeln(filo,'</body>')
writeln(filo,'</html>')
call close(filoccioccio)
return
titola: /* Intestazione */
parse arg subbo
writeln(filo,'<HTML>')
writeln(filo,'<HEAD>')
writeln(filo,'<!DOCTYPE HTML PUBLIC "-//IETF//DD HTML 3.0//EN">')
writeln(filo,'<!-- AUTHOR="Diego dx0 de Felice" -->')
window ID cicciotto TITLE "Ftp-Section" PORT YAMEXP
group
group HORIZ
label CENTER "Type:"
text ID TIPPO LABEL "domani"
label CENTER "Date:"
text ID DATTO LABEL "oggi"
endgroup
group ID FFF FRAME LABELS "List of Files in the email"
list ID ZAM COMMAND '"YAMEXP.rexx ADALL"' TITLE '"\033bFile,\033bDirectory,\033bSize,\033bAge,\033bDescription"' INSERT NODUP ATTRS Listview_DragType Listview_DragType_Immediate Listview_MultiSelect Listview_MultiSelect_Shifted MUIA_List_Format '"P=\033l BAR,P=\033l BAR,P=\033c BAR,P=\033c BAR,P=\033l"' HELP '"Select the files to include in the list below"'
button COMMAND '"YAMEXP.rexx ADALL"' LABEL "Add file(s) when the counters above have stopped"
endgroup
group FRAME LABELS "Selected Files"
list ID SELEN COMMAND '"YAMEXP.rexx RIMOZZO"' TITLE '"\033bFile,\033bDirectory,\033bSize,\033bAge,\033bDescription"' INSERT NODUP ATTRS Listview_DragType Listview_DragType_Immediate Listview_MultiSelect Listview_MultiSelect_Shifted MUIA_List_Format '"P=\033l BAR,P=\033l BAR,P=\033c BAR,P=\033c BAR,P=\033l"' HELP '"Selected files to include in the ftpmail"'